package info.techgeek.labs.gregorianCalendar;

import java.util.Date;
import java.util.GregorianCalendar;

public class FormDates {

	public static void main(String[] args) {
		
		GregorianCalendar gc = new GregorianCalendar();
		
		String minute = "30";
		String hour = "01";
		String dayOfMonth = "25";
		String monthOfYear = "10";
		String dayOfWeek = "05";
		String year = String.valueOf(gc.get(gc.YEAR));

		gc.clear();
		if(minute !=null ){
//			gc.set(GregorianCalendar.MINUTE, Integer.parseInt(minute));
		}
		if(hour !=null ){
//			gc.set(GregorianCalendar.HOUR, Integer.parseInt(hour));
		}
		if(dayOfMonth !=null ){
//			gc.set(GregorianCalendar.DAY_OF_MONTH, Integer.parseInt(dayOfMonth));
		}
		if(monthOfYear !=null ){
			gc.set(GregorianCalendar.MONTH, Integer.parseInt(monthOfYear));
		}
		if(dayOfWeek !=null ){
			gc.set(GregorianCalendar.DAY_OF_WEEK, Integer.parseInt(dayOfWeek));
		}
		if(year !=null ){
//			gc.set(GregorianCalendar.YEAR, Integer.parseInt(year));
		}
		
		System.out.println("Set Time "+gc.getTime());
		System.out.println("Current Time "+new Date());
		
		
		String minutes = "00;10";
		
		System.out.println("sds "+ minutes.split(";").length);
		
	}
}
